{extend name="layout:base" /}
{block name="page_content"}
<section class="notice">
    <div class="banner">
        <?php if(isset($tree_node['pc_banner_path'])): ?>
            <img src="{$site_root}{$tree_node.pc_banner_path}" alt="{$tree_node.title}">
        <?php else: ?>
            <img src="{$cdn_root}/static/index/img/banner_news.png" alt="{$tree_node.title}">
        <?php endif; ?>
    </div>
    <div class="center">
        <div class="else-title">
            {$tree_node.title}
            <span>&nbsp;/&nbsp;&nbsp;{$tree_node.name}</span>
            <ul>
                {volist name='tree_node.children' id='child'}
                    <li <?php if($cat_id==$child['id']) { echo('class="active"'); } ?> >
                        <?php if($child['id'] == $tree_node['default_second_category_id']): ?>
                            <a href="{:url('index')}">{$child.title}</a>
                        <?php else: ?>
                            <a href="{:url('index', ['cat_id' => $child['id']])}">{$child.title}</a>
                        <?php endif; ?>
                    </li>
                {/volist}
            </ul>
        </div>
        <ul class="content">
            <?php $list = $res->all(); ?>
            {volist name="$list" id="vo"}
                <li>
                    <a href="{:url('read', ['id' => $vo['id']])}" class="news-out else">
                        <i class="icon icon-circle-tit"></i>
                        <span class="news-tit">{$vo.title}</span>
                        <span>{$vo.create_date}</span>
                    </a>
                </li>
            {/volist}
        </ul>
        <?php echo($res->render()); ?>
    </div>
</section>
{/block}